package com.biz.primus.ms.geo.trans;

import com.biz.primus.model.geo.vo.AreaResponseVo;
import com.biz.primus.ms.geo.dao.ro.CityRo;
import com.google.common.base.Function;

/**
 * @author JKLiues
 * @date 2017/11/8
 */
public class CityRo2AreaResponseVo implements Function<CityRo, AreaResponseVo> {

    @Override
    public AreaResponseVo apply(CityRo input) {
        AreaResponseVo resp = new AreaResponseVo();
        resp.setId(input.getId().longValue());
        resp.setLat(input.getLat());
        resp.setLon(input.getLon());
        resp.setName(input.getName());
        resp.setPrefix(input.getPrefix());
        resp.setProvinceId(input.getProvinceId().longValue());
        return resp;
    }
}
